﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Htse.Blue.Models;
using System.Security.Principal;

namespace Htse.Blue.Controllers
{
	public static class ControllersHelper
	{
		public static bool IsCurrentUmpireTheCurrentUser(Umpire umpire, IPrincipal currentUser)
		{
			return string.Equals(umpire.AccountName, currentUser.Identity.Name, StringComparison.InvariantCultureIgnoreCase);
		}
	}
}
